package com.zdb.config.service;

import org.springframework.ai.tool.annotation.Tool;
import org.springframework.stereotype.Service;

import java.util.Date;

@Service("weatherServiceTool")
public class ToolsService {
    @Tool(description = "获取当前时间")
    public String getDate(){
        return new Date().toString();
    }
    @Tool(description = "给我一个数字")
    public double getNumber(){
        return Math.random();
    }

}
